<!DOCTYPE html>
<html>
<head>
    <meta charset = "utf_8"/>
    <title>test</title>
</head>
<body>
id:<input id = "id" type="text"/>
<button id="btn">confrim</button>
<script src="jquery-3.4.1.js"></script>
    <script>
    $("#btn").click(function(){
        $.post({
            url:"http://localhost:8080/userInfo/selectById",
            data:{
                id:$("id").val()
            },
            success: function(data){
                alert("success")
            },
            error: function (data) {
                alert("error")
            }
        })
    });
</script>
</body>
</html>
